package summative;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JMenuItem;


public class ExitListener implements ActionListener {

	private JMenuItem exit;
	
	public ExitListener(JMenuItem exit){
		this.exit = exit;
	}
	
	public void actionPerformed(ActionEvent e) {
		
		System.exit(0);
		
	}

}

